export default {
    props: {
        allowDisabled: null,
    },
    inject: {
        FormInstance: {
            default: ''
        }
    },
    computed: {
        itemDisabled () {
            let state = this.disabled;
            if(this.allowDisabled) return state;
            if(this.FormInstance) state = this.FormInstance.disabled;
            return state;
        }
    }
};
